package com.team.childapp.ui

import com.huanguo.dashboard.base.activity.BaseVMActivity
import com.huanguo.dashboard.viewmodel.MainDashBoardViewModel
import com.team.childapp.R
import com.team.childapp.databinding.ActivityViewModelBinding


/**
 * 作者：suichengju
 * 时间：2024/12/17:18:10
 * 邮箱：325927775@qq.com
 * 说明：仪表总入口
 */
class DafaultViewModeActivity : BaseVMActivity<ActivityViewModelBinding,
        MainDashBoardViewModel>(R.layout.activity_view_model) {

    override fun initVMData() {
        setBarTitle("仪表首页")
        mViewModel.initMboardData()

    }

    /**
     * AUTHOR:suichengju
     * INTRODUCE:重写observeLiveData方法，监听LiveData发生的改变
     */
    override fun observeLiveData() {
        super.observeLiveData()
//        mViewModel.mResultLiveData.observe(this) {
//            Toast.makeText(this, it, Toast.LENGTH_SHORT).show()
//        }
    }

    override fun dialogLoading() {
        super.dialogLoading()
        //这里进行Loading加载
    }

    override fun dialogDismiss() {
        super.dialogDismiss()
        //这里进行Loading销毁
    }
}